import { splitProps, type JSX, type ParentComponent } from "solid-js";

const ButtonToolbar: ParentComponent<JSX.HTMLAttributes<HTMLDivElement>> = (
  props
) => {
  const [local, attributes] = splitProps(props, ["children"]);

  return (
    <div class="btn-toolbar" role="toolbar" {...attributes}>
      {local.children}
    </div>
  );
};

export default ButtonToolbar;
